<?php session_start();
require_once('../../includefiles.php');
include_once("../../model/admindetails.php");

// Create Object
$userObj  = new Model_AdminDetails();

$email = strtolower($_GET['email']);  
$userid = strtolower($_GET['id']);  

// this function check username Exit ot not
$result = $userObj->getTradesmanUserEmail(trim($email),$userid);

if(count($result) > 0)
{	
	if($result['email'] == $email)
	{
		echo 'false';
	}
}
else
{
	echo "true";	
}

?>


